<?php

class user_ctrl extends Controller
{

    public function __construct()
    {
        parent::__construct();
    }


    public function get_user()
    {
        if (!$this->ajax_err && $this->uid) {


            /*$str = file_get_contents('data:image/jpeg;base64,'.$this->headimgurl);
            $str = base64_encode($str);*/

            $this->ajax(array(
                'nick' => $this->nick,
                'headimgurl' => $this->headimgurl,
            ));
        } else {
            return $this->ajax('', array(1, '未登录', 1, '请登录'));
        }
    }


}